package com.learn.algorithm.designpattern.chain;

/**
 * 责任链模式实现
 * @author wangxing
 * @version 2020/7/22 13:25 Administrator
 */
public abstract class BaseChain {
    private BaseChain next;

    public BaseChain getNext() {
        return next;
    }

    public void setNext(BaseChain next) {
        this.next = next;
    }

    public BaseChain(BaseChain next) {
        this.next = next;
    }

    /**
     * 责任实现方法
     * @param request
     * @return
     */
    public abstract boolean process(RequestTemp request);
}
